package com.xhh.nphm.gaoxin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhh.nphm.gaoxin.entity.GxqTtelGetDealEty;
import com.xhh.nphm.gaoxin.entity.GxqTworkFormBaseEty;
import com.xhh.nphm.gaoxin.mapper.GxqTelGetDealDao;
import com.xhh.nphm.gaoxin.mapper.GxqWorkFormBaseDao;
import com.xhh.nphm.gaoxin.service.GxqILookupService;
import com.xhh.nphm.system.domain.MmailWorkForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GxqLookupServiceImpl extends ServiceImpl<GxqWorkFormBaseDao, GxqTworkFormBaseEty> implements GxqILookupService {
    @Autowired
    private GxqTelGetDealDao gxqTelGetDealDao;

    @Override
    public List<GxqTworkFormBaseEty> telWFList(GxqTworkFormBaseEty GxqTworkFormBaseEty) {
        return getBaseMapper().telWFAll(GxqTworkFormBaseEty);
    }

    @Override
    public List<MmailWorkForm> mailWFList(MmailWorkForm mmailWorkForm) {
        return getBaseMapper().mailWFList(mmailWorkForm);
    }

    /**
     * 通话记录列表数据
     *
     * @param GxqTtelGetDealEty 封装查询条件
     * @return 列表数据
     */
    @Override
    public List<GxqTtelGetDealEty> telGetAllList(GxqTtelGetDealEty GxqTtelGetDealEty) {
        return gxqTelGetDealDao.telGetAllList(GxqTtelGetDealEty);
    }

    /**
     * 查询电话工单抄送件列表数据
     *
     * @param GxqTworkFormBaseEty 查询条件
     * @param deptId           部门编号
     * @return 列表数据
     */
    @Override
    public List<GxqTworkFormBaseEty> telCopyList(GxqTworkFormBaseEty GxqTworkFormBaseEty, Long deptId) {
        return getBaseMapper().telCopyList(GxqTworkFormBaseEty,deptId);
    }
}
